package com.yingxin.yxerp.module.common;

public enum UpdateBusinessType {

    RZ("RZ", "热轧卷编辑"),
    SX("SX", "酸洗卷编辑"),
    ZY("ZY", "轧硬卷编辑"),
    ZY_STOCK("ZY_STOCK", "轧硬库存卷编辑"),
    DX("DX", "镀锌卷编辑"),
    DX_STOCK("DX_STOCK", "镀锌库存卷编辑"),

    CGHT("CGHT", "采购合同编辑"),
    XSHT("XSHT", "销售合同编辑"),

    ZLRKDTZ("ZLRKDTZ", "主料入库单调整"),
    ZLRKD_HTTZ("ZLRKD_HTTZ", "主料入库单合同调整"),
    ZLRKD_CF("ZLRKD_CF", "主料入库单拆分"),
    ZLRKD_EDIT("ZLRKD_EDIT", "主料入库单编辑"),

    BPCG("BPCG", "备品采购单编辑"),
    BPWX("BPWX", "备品维修单编辑"),

    BPUNIT("BPUNIT", "备品备件计量单位编辑申请"),
    BPFLWH("BPFLWH", "备品备件分类编辑申请"),
    BPWH("BPWH", "备品备件产品编辑申请"),
    YKRK("YKRK", "移库入库"),
    SXXSCK("SXXSCK", "酸洗销售出库"),
    ZYXSCK("ZYXSCK", "轧硬销售出库"),

    ;

    private String type;

    private String typeName;

    UpdateBusinessType(String type, String typeName) {
        this.type = type;
        this.typeName = typeName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public static UpdateBusinessType getEnum(String type) {
        for (UpdateBusinessType t : UpdateBusinessType.values()) {
            if (t.getType().equals(type)) {
                return t;
            }
        }
        return null;
    }

}
